class TFCNGunAttach extends xWeaponAttachment;

var xEmitter mMuzFlash3rd;

simulated event ThirdPersonEffects()
{
    local rotator r;

    if ( Level.NetMode != NM_DedicatedServer && FlashCount > 0 )
	{
		WeaponLight();
        if (mMuzFlash3rd == None)
        {
            mMuzFlash3rd = Spawn(class'taskforces.tfcnmuz3rd');
            AttachToBone(mMuzFlash3rd, 'tip');
        }
        if (mMuzFlash3rd != None)
        {
            r.Roll = Rand(65536);
            SetBoneRotation('Bone_Flash', r, 0, 1.f);
            mMuzFlash3rd.mStartParticles++;
        }
    }

    Super.ThirdPersonEffects();
}

defaultproperties
{
     bHeavy=True
     bAltRapidFire=True
     Mesh=SkeletalMesh'Weapons.LinkGun_3rd'
     DrawScale3D=(X=1.500000,Y=2.000000)
     Skins(0)=Texture'TFMedia.Cannoneer.tfCNGunTex0'
}
